home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Sep 89 / Y0055-Re[2] Scroller prob-Sep89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  32 lines  |  [TEXT/GEOL]

  1. Item    3906783                         15-Sept-89        10:14
  2.  
  3. From:   LMILLETT                        Millett, Lonnie
  4.  
  5. To:     CH0068                          CH DEV Hamilton, Bonaduz
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Re: Scroller problem
  10.  
  11. Thomas,
  12.  
  13. While what Chris has described is perfectly true, there is a reason why you are
  14. seeing no effect when you fiddle with the values in the calc.r, especially the
  15. scroll limits.  After the calc window is loaded from the resource file, the
  16. subview of the scroller is resized which causes a SubViewChangedSize message to
  17. be sent to the scroller.  This method changes the scroll limits to be the new
  18. size of its subview, essentially clobbering the values you had specified in the
  19. resource file.
  20.  
  21. What can you do if you really want the scroll limits to be different from the
  22. size of its subviews?  One option is to define your own scroller and override
  23. the SubViewChangedSize method to leave the scroll limits alone.  Another
  24. possibility would be to call SetScrollLimits yourself after it is finished
  25. modifying them with the scroll limit values you really need.
  26.  
  27. Hope this helps.
  28.  
  29. Lonnie Millett
  30. Apple Computer
  31.  
  32.